//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using OpenLS.Core.Serialization;

namespace OpenLS.Vml
{
    class Handles: ShapeElement
    {
        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("handles"))
            {
                items.Clear();
                items.AddRange(c.ReadOptionalWhile<Handle>("h"));
            }
        }
        List<Handle> items = new List<Handle>();

        internal override void WriteXmlCore(WriteContext context)
        {
            using (var c = context.Write("handles"))
            {
                c.WriteElements(items);
            }
        }
    }
}